<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <!-- 这个页面中不要包含有js!!! -->
  </head>  
  <body>
  	<!-- 验证还是jquery-validation好用，这里省事没用 -->
	<form class="auform" id="passengerForm" method="post">
		<input type="hidden" name="personId" id="personId" />
		<table class="autable">
			<tr>
				<td class="autd1" style="width:130px">姓名：</td>
				<td class="autd2"><input name="personName" style="width:150px" validType="length[2,30]" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1">性别：</td>
				<td class="autd2"><select class="easyui-combobox" name="personSex" id="personSex" panelHeight="auto" style="width:150px" editable="false" required="true">
						<option value="${constant.MALE}" selected="selected">男</option>
						<option value="${constant.FEMALE}">女</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="autd1">身份：</td>
				<td class="autd2"><select class="easyui-combobox" name="personType" id="personType" panelHeight="auto" style="width:150px" editable="false" required="true">
						<option value="${constant.PASSENGER}" selected="selected">旅客</option>
						<option value="${constant.WORKMAN}">工作人员</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="autd1">身份证号：</td>
				<td class="autd2"><input name="personNi" id="personNi" validType="length[1,20]" style="width:150px" ><span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1">联系电话：</td>
				<td class="autd2"><input name="personPhone" style="width:150px" validType="length[1,15]" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1">备注：</td>
				<td class="autd2"><textarea name="remark" class="txtarea" style="height: 100px;width: 300px;"></textarea></td>
			</tr>
			<tr>
				<td class="autd3" colspan="4">
					<a href="#" id="btn-back" onclick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
					<a href="#" id="btn-add" onclick="addOrUpdate('${param.update}');" class="easyui-linkbutton" iconCls="icon-save">保存</a>
				</td>
			</tr>
		</table>
	</form>
  </body>
</html>
